Scenario #9331: Newly Created Account for Preexisting Subject Should Be Able to View That Person

Properties

Required

Given

name value
subjectName xyz-jack.tucker

Expected

name value
personFamilyName Tucker
personGivenName Jack

personUuid

HTTP GET "/api/hs/accounts/accounts" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<xyz-jack.tucker>"` \
  `# }`
=> status: 200 OK 
[ {
  "uuid" : "242a0001-0000-0000-0000-000000000001", // theAccount
  "person" : {
    "uuid" : "26610d4b-2260-467c-b1a8-9847d04bdb82", // Person: Jack Tucker
    "personType" : "NATURAL_PERSON",
    "tradeName" : null,
    "salutation" : null,
    "title" : null,
    "givenName" : "Jack",
    "familyName" : "Tucker"
  },
  "subject" : {
    "uuid" : "242a0001-0000-0000-0000-000000000001", // theAccount
    "name" : "xyz-jack.tucker",
    "type" : "USER"
  },
  "globalUid" : 21015,
  "globalGid" : 21015
} ]

Fetch the account for the current subject to resolve the related person.

View Own Person

HTTP GET "/api/hs/office/persons/26610d4b-2260-467c-b1a8-9847d04bdb82" // personUuid \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<xyz-jack.tucker>"` \
  `# }`
=> status: 200 OK 
{
  "uuid" : "26610d4b-2260-467c-b1a8-9847d04bdb82", // personUuid
  "personType" : "NATURAL_PERSON",
  "tradeName" : null,
  "salutation" : null,
  "title" : null,
  "givenName" : "Jack",
  "familyName" : "Tucker"
}

generated on 2026-07-17 01:42:21 for branch